package ${businessPackagePath}.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import ${entityPackagePath}.${changeTableName};

/**
 * ${tableAnnotation} service接口
 *
 * @author ${author}
 * @company gitee.com/money-making-team
 * @create ${date}
 */
public interface ${changeTableName}Service {

    /**
     * 分页条件查询
     * @param pageNum
     * @param pageSize
     * @param ${changeTableName?uncap_first}
     * @return
     */
    IPage get${changeTableName}ListByPage(int pageNum, int pageSize, ${changeTableName} ${changeTableName?uncap_first});

    /**
     * 根据主键获取
     * @param id
     * @return
     */
    ${changeTableName} get${changeTableName}ById(String id);

    /**
     * 新增数据
     * @param ${changeTableName?uncap_first}
     * @return
     */
    int insert${changeTableName}(${changeTableName} ${changeTableName?uncap_first});

    /**
     * 根据主键更新
     * @param id
     * @param ${changeTableName?uncap_first}
     * @return
     */
    int update${changeTableName}ById(String id, ${changeTableName} ${changeTableName?uncap_first});

    /**
     * 根据id删除数据
     * @param id
     * @return
     */
    int delete${changeTableName}ById(String id);
}
